<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%String path = request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>${sessionScope.SESSION_STREET_THEME.thSiteTitle}</title>
	<link href="<%=path %>/res/themes/layout/layout.css" rel="stylesheet" type="text/css"/>
	<link href="<%=path %>/res/themes/layout/msgdetail.css" rel="stylesheet" type="text/css"/>
	<link href="<%=path %>/res/themes/${sessionScope.SESSION_STREET_THEME.thStyle}/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="<%=path %>/res/themes/${sessionScope.SESSION_STREET_THEME.thStyle}/css/msgdetail.css" rel="stylesheet" type="text/css"/>
	<link href="<%=path %>/pages/inc/themes.jsp" rel="stylesheet" type="text/css"/>
	
	<script type="text/javascript" src="<%=path %>/res/js/jquery.js"></script>
	<script type="text/javascript" src="<%=path %>/res/js/common.js"></script>
	<script type="text/javascript" src="<%=path %>/pages/js/msgdetail.js"></script>
</head>
<body>
<input type="hidden" id="message" value="${message}"/>
<input type="hidden" id="webPath" value="<%=path %>/<s:property value="domain"/>"/>
<input type="hidden" id="webPath1" value="<%=path %>"/>
<div class="page">
	<div class="header">
		<%@ include file="inc/header.jsp"%>
	</div>
	<div class="body">
		<div class="msg-detail">
			<div class="current-pos">当前位置：首页 > <s:property value="currMenu.menuName"/> > <s:property value="currSubMenu.menuName"/> </div>
			<div class="msg-title">${msgBean.msgTitle}</div>
			<div class="msg-subtitle">来源：${msgBean.msgSource}  发布时间：${msgBean.publishTime}</div>
			<div class="msg-content">${msgBean.msgContent}</div>
                        <br></br>
                        <div class="msg-content"><s:if test="''!=msgBean.msgAttachment && msgBean.msgAttachment!=null"><strong>附件： </strong><span><a style="color: red;text-decoration: underline" href="<%=path %><s:property value="msgBean.msgAttachment"/>" target="_blank" ><s:property value="msgBean.msgAttachmentShow"/></a></span></s:if></div>
			<div class="msg-button">[<a onclick="window.close()" href="javascript:void(0);">关闭窗口</a>] <img align="right" style="cursor: pointer;" src="<%=path %>/res/themes/style1/imgs/top.gif" onclick="javascript:scrollTo(0,0)" title="返回顶部" alt="返回顶部"/></div>
			<s:if test="msgBean.disEnable == \"0\"">
			<div class="msg-comment">我要评论 </div>
			<div class="comment-box">
				<div class="comment-input">
					<input id="id_msgId" type="hidden" name="msgId" value="${msgBean.msgId}"/>
					<table cellpadding="2">
						<tr>
							<td align="right">姓名：</td>
							<td>
								<input id="id_author" name="commentAuthor" maxlength="20" class="text" type="text"/>
								<span class="red-span">*</span>
							</td>
						</tr>
						<tr>
							<td align="right">身份证：</td>
							<td>
								<input id="id_idcard" name="authorIdcard" maxlength="20" class="text" type="text"/>
								<span class="red-span">*</span>
							</td>
						</tr>
						<tr>
							<td align="right">手机号码：</td>
							<td><input id="id_phone" name="authorPhone" maxlength="15" class="text" type="text"/></td>
						</tr>
						<tr>
							<td align="right">电子邮箱：</td>
							<td><input id="id_email" name="authorEmail" maxlength="60" style="width: 230px" class="text" type="text"/></td>
						</tr>
						<tr>
							<td align="right">评论内容：</td>
							<td>
								<textarea id="id_content" name="commentContent" class="textarea" rows="" cols=""></textarea>
								<span class="red-span">*</span>
							</td>
						</tr>
						<tr>
							<td align="right">验证码：</td>
							<td>
								<input id="id_vcode" name="vCode" maxlength="4" style="width: 60px" class="text" type="text"/> 
								<img id="vImg" src="<%=path %>/rand" style="vertical-align: bottom;cursor:pointer;" title="点击更换图片" alt="点击更换图片" onclick="changeValidateCode()" />
								[<a onclick="changeValidateCode()" href="javascript:void(0);">看不清楚，换一张?</a>]
							</td>
						</tr>
						<tr>
							<td></td>
							<td><input id="submit_btn" class="comment-submit-btn" type="button" value=""/></td>
						</tr>
					</table>
					<div class="comment-note">
						<h3>请注意：</h3>
						<p>遵守中华人民共和国有关法律、法规，尊重网上道德，承担一切因您的行为而直接或间接引起的法律责任。</p>
					</div>
				</div>
				<div class="comment-content">
					<ul>
						<s:if test='commentList != null && commentList.size() > 0'>
						<s:iterator var="comment" value="commentList">
						<li>
							<div class="title-bar"><span ><b>${comment.commentAuthor}</b> 发表于  ${comment.publishTime}</span></div>
							<div class="content-text"><s:property value="#comment.commentContent"/></div>
						</li>
						</s:iterator>
						</s:if>
						<s:else>
						<li>
							<div class="title-bar">暂无评论</div>
						</li>
						</s:else>
					</ul>
					<%@ include file="inc/page.jsp"%>
				</div>
				<div class="clear"></div>
			</div>
			</s:if>
		</div>
	</div>
	<div class="footer">
		<%@ include file="inc/footer.jsp"%>
	</div>
</div>
</body>
</html>